// 用来封装所有与搜索操作相关的业务
import ajax from '../utils/request'
export const getSuggestion = (keyword) => {
  return ajax({
    url: '/app/v1_0/suggestion',
    method: 'GET',
    params: {
      q: keyword
    }
  })
}

export const getSearchResult = (keyword, page) => {
  return ajax({
    url: '/app/v1_0/search',
    method: 'GET',
    params: {
      q: keyword,
      page: page
    }
  })
}
